<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2017/6/15
 * Time: 15:20
 * Project name: PHPTEST
 * File name: 1.php
 * @copyright Copyright (c) 2016 ZRX Software LLC
 * @license https://github.com/zhangrxiang
 * @since 1.0.0
 */

//* Registers a post type.
function register_post_type( $post_type, $args = array() ) {}

//* Determines if a post can be published
function can_be_published( $post ) {}

//* Add an already registered taxonomy to an object type.
function register_taxonomy_for_object_type( $taxonomy, $object_type) {}

//* Retrieves post data given a post ID or post object.
function get_post( $post = null, $output = OBJECT, $filter = 'raw' ) {}

//* Check whether variable is a WordPress Error.
function is_wp_error( $thing ) {}

//* Retrieves the terms associated with the given object(s), in the supplied taxonomies.
function wp_get_object_terms($object_ids, $taxonomies, $args = array()) {}

//* Retrieves the URL for the current site where WordPress application files
function site_url( $path = '', $scheme = null ) {}

//* Retrieve the current user object.
function wp_get_current_user() {}

//* Pluck a certain field out of each object in a list.
function wp_list_pluck( $list, $field, $index_key = null ) {}

//* Retrieve variable in the WP_Query class.
function get_query_var( $var, $default = '' ) {}

//* Retrieve the terms for a post.
function wp_get_post_terms( $post_id = 0, $taxonomy = 'post_tag', $args = array() ) {}

//* Retrieve list of latest posts or posts matching criteria.
function get_posts( $args = null ) {}

//* Returns parent post based on parent_slug query var.
function get_parent_post() {}

//* Retrieve the ID of the current item in the WordPress Loop.
function get_the_ID() {}

//* Retrieve the translation of $text and escapes it for safe use in HTML output.
function esc_html__( $text, $domain = 'default' ) {}

//* Retrieves the edit post link for post.
function get_edit_post_link( $id = 0, $context = 'display' ) {}

//* Retrieves a post type object by name.
function get_post_type_object( $post_type ) {}

//* Get the current screen object
function get_current_screen() {}

//* Adds a meta box to one or more screens.
function add_meta_box( $id, $title, $callback, $screen = null, $context = 'advanced', $priority = 'default', $callback_args = null ) {}

//* Registers the script if $src provided (does NOT overwrite), and enqueues it.
function wp_enqueue_script( $handle, $src = false, $deps = array(), $ver = false, $in_footer = false ) {}

//* Registers the style if source provided (does NOT overwrite) and enqueues.
function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = 'all' ) {}

//* Retrieve post meta field for a post.
function get_post_meta( $post_id, $key = '', $single = false ) {}

//* Display translated text that has been escaped for safe use in HTML output.
function esc_html_e( $text, $domain = 'default' ) {}

//* Checks and cleans a URL.
function esc_url( $url, $protocols = null, $_context = 'display' ) {}

//* Escaping for HTML attributes.
function esc_attr( $text ) {}

//* Update post meta field based on post ID.
function update_post_meta( $post_id, $meta_key, $meta_value, $prev_value = '' ) {}

//* Remove metadata matching criteria from a post.
function delete_post_meta( $post_id, $meta_key, $meta_value = '' ) {}

//* After looping through a separate query, this function restores
function wp_reset_postdata() {}

//* Check if a post type is registered.
function post_type_exists( $post_type ) {}

//* Check if post has an image attached.
function has_post_thumbnail( $post = null ) {}

//* Retrieve post thumbnail ID.
function get_post_thumbnail_id( $post = null ) {}

//* Return the post thumbnail URL.
function get_the_post_thumbnail_url( $post = null, $size = 'post-thumbnail' ) {}

//* Retrieve theme directory URI.
function get_template_directory_uri() {}

//* Displays the permalink for the current post.
function the_permalink( $post = 0 ) {}

//* Retrieve post title.
function get_the_title( $post = 0 ) {}

//* Get an array containing the current upload directory's path and url.
//array(6) {
//    ["path"]=>
//  string(52) "D:\phpStudy\WWW\wordpress/wp-content/uploads/2017/06"
//    ["url"]=>
//  string(40) "http://wp.dev/wp-content/uploads/2017/06"
//    ["subdir"]=>
//  string(8) "/2017/06"
//    ["basedir"]=>
//  string(44) "D:\phpStudy\WWW\wordpress/wp-content/uploads"
//    ["baseurl"]=>
//  string(32) "http://wp.dev/wp-content/uploads"
//    ["error"]=>
//  bool(false)
//}
function wp_upload_dir( $time = null, $create_dir = true, $refresh_cache = false ) {}






















